import Layout from '@/layouts';

export default [
  {
    path: '/rank',
    name: 'Rank',
    component: Layout,
    redirect: '/rank/product',
    meta: { title: '排行榜', icon: 'order-ascending' },
    children: [
      {
        path: 'product',
        name: 'RankOfProductSale',
        component: () => import('@/pages/rank/product/index.vue'),
        meta: { title: '商品销量排行' },
      },
      {
        path: 'stager',
        name: 'RankOfStager',
        component: () => import('@/pages/rank/stager/index.vue'),
        meta: { title: '达人排行' },
      },
    ],
  },
  {
    path: '/product',
    name: 'Product',
    component: Layout,
    redirect: '/product/list',
    meta: { title: '商品管理', icon: 'shop' },
    children: [
      {
        path: 'list',
        name: 'ProductList',
        component: () => import('@/pages/product/list/index.vue'),
        meta: { title: '商品列表' },
      },
      {
        path: 'category',
        name: 'ProductCategory',
        component: () => import('@/pages/product/category/index.vue'),
        meta: { title: '分类列表' },
      },
    ],
  },
];
